package cn.itcast.travel.dao;

import cn.itcast.travel.domain.Favorite;
import cn.itcast.travel.domain.Route;

import java.util.List;

public interface FavoriteDao {
    public Favorite findByRidAndUid(int rid, int uid);
    int findCountByRid(int rid);

    void add(int anInt, int parseInt);
    List<Route> myFavorite(int start, int pageSize, int uid);

    int findCountByUid(int uid);

    int findCountByRse(String rname, int sprice, int eprice);

    List<Route> findFavoriteQuery(int start, String rname, int sprice, int eprice, int pageSize);
}
